//
//  CustomTableViewCell.m
//  登陆模块
//
//  Created by rimi on 15/9/18.
//  Copyright (c) 2015年 陈平. All rights reserved.
//

#import "CustomTableViewCell.h"

@interface  CustomTableViewCell ()
- (void)initializeCustomCell;
@end


@implementation CustomTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        // 自定义UITableViewCell 代码编写区域
        [self initializeCustomCell];
    }
    return self;
}

- (void)initializeCustomCell
{
    // 添加视图到表格
    [self addSubview:self.number];
    [self addSubview:self.type];
    [self addSubview:self.amount];

}

#pragma mark - getter

- (UILabel *)number
{
    if (!_number) {
        _number = ({
            UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 192, 45)];
            label.font = [UIFont systemFontOfSize:15];
            label.textAlignment = NSTextAlignmentCenter;
            label.layer.borderColor = COLOR_RGB(218, 203, 160, 1).CGColor;
            label.layer.borderWidth = 1;
            label;
        });
    }
    return _number;
}


- (UILabel *)type
{
    if (!_type) {
        _type = ({
            UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(192, 0,188, 45)];
            label.textAlignment = NSTextAlignmentCenter;
            label.font = [UIFont systemFontOfSize:15];
            label.layer.borderColor = COLOR_RGB(218, 203, 160, 1).CGColor;
            label.layer.borderWidth = 1;
            label;
        });
    }
    return _type;
}



- (UILabel *)amount
{
    if (!_amount) {
        _amount = ({
            UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(380, 0, 196, 45)];
            label.font = [UIFont systemFontOfSize:15];
            label.textAlignment = NSTextAlignmentCenter;
            label.layer.borderColor = COLOR_RGB(218, 203, 160, 1).CGColor;
            label.layer.borderWidth = 1;
            label;
        });
    }
    return _amount;
}




@end
